package com.xiangban.yanglaodajie_platform.dao;


import com.xiangban.yanglaodajie_platform.entity.Orders;
import com.xiangban.yanglaodajie_platform.entity.OrdersExample;
import com.xiangban.yanglaodajie_platform.entity.dto.OrderNoDto;
import com.xiangban.yanglaodajie_platform.entity.dto.OrdersDto;
import com.xiangban.yanglaodajie_platform.entity.dto.ShoppingCartDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface OrdersMapper {

    Orders selectOrder(Orders orders);
    OrdersDto selectOrderInfo(Orders orders);
    void deleteOrder(Orders orders);
    void updateShopOrdersStatus(Orders orders);
    void updStatus(OrderNoDto orderNoDto);
    void updateSku(String string,String string2);
    OrdersDto findAllOrderPrice(Orders orders);
    OrdersDto findOrdersNumber(Orders orders);
    OrdersDto findTodayIntegral(Orders orders);
    void updateStatus(OrderNoDto orderNoDto);
    List<OrdersDto> findOrders(Orders orders);
    void updateOrderStatus(OrderNoDto orderNoDto);
    List<ShoppingCartDto> getShopId(ShoppingCartDto shoppingCartDto);
    List<ShoppingCartDto> findGoods(ShoppingCartDto shoppingCartDto);

    List<OrderNoDto> findStatus(OrderNoDto orderNoDto);
    Orders findOrderPriceSUM(OrderNoDto orderNoDto);
    ShoppingCartDto findAccumulatePoints(OrderNoDto orderNoDto);
    int countByExample(OrdersExample example);

    int deleteByExample(OrdersExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Orders record);

    int insertSelective(Orders record);

    List<Orders> selectByExample(OrdersExample example);

    Orders selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Orders record, @Param("example") OrdersExample example);

    int updateByExample(@Param("record") Orders record, @Param("example") OrdersExample example);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);

    void updOrderStatus(Map<String,Object> parameter);
    OrdersDto orderInfoByOderNo(Orders orders);
    OrdersDto shopOrderInfoByOderNo(Orders orders);

}